package com.xxh.cloud.provider.controller;


import com.xxh.cloud.common.vo.R;
import com.xxh.cloud.provider.service.inft.SmsLogService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "",tags = "验证码发送")
@RestController
@RequestMapping("/server/sms/")
public class SmsLogController {
    @Autowired
    private SmsLogService smsLogService;

    @PostMapping("sendlogincode.do")
    public R login(String phone){
        return smsLogService.sendSmsLogin(phone);
    }


    @GetMapping("all.do")
    public R all(){
        return smsLogService.all();
    }
}
